package com.fzy.auth.entity;



/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.class table="fz_city"
 * @hibernate.meta attribute="class-description" value="城市"
 * @hibernate.comment 城市
 */
public class City {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4554136580942167578L;
	Long id;
	String name;
	String code;
	String parentCode;
	String status;

	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_city"
     * @hibernate.meta attribute="field-description" value="ID"
     * @hibernate.comment ID(s_fz_city)
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
    /**
     * @hibernate.property column="name" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="名称"
     * @hibernate.comment 名称
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
    /**
     * @hibernate.property column="code" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="代码"
     * @hibernate.comment 代码
     */
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
    /**
     * @hibernate.property column="parent_code" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="父条目代码"
     * @hibernate.comment 父条目代码(fz_dict_entry.code)
     */
	public String getParentCode() {
		return parentCode;
	}
	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}
    /**
     * @hibernate.property column="status" type="string" length="1" not-null="true"
     * @hibernate.meta attribute="field-description" value="状态"
     * @hibernate.comment 记录状态(0,无效,1,有效)
     */
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
}
